package com.thero.core.net;

/**
 * Created by wusk on 2017/11/28.
 *  包长度（带头） 4，包数量 2，包序号 2，命令字 2
 */
public class MessageHeader {
    public static final int HEADER_SIZE = 10;

    private int length;
    private short count;
    private short index;
    private short command;

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public short getCount() {
        return count;
    }

    public void setCount(short count) {
        this.count = count;
    }

    public short getIndex() {
        return index;
    }

    public void setIndex(short index) {
        this.index = index;
    }

    public short getCommand() {
        return command;
    }

    public void setCommand(short command) {
        this.command = command;
    }
}
